package 观察者模式;

public class ConcreteSubject extends Subject {
    public void notifyObserver(String message) {
        for (Observer observer : observerList) {
            System.out.println("通知 observe "+message+" change......");
            observer.dataChange(message);
        }
    }
}
